/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
 */

package pl.droidsonroids.gif;

/**
 * Interface which can be used to run some code when particular animation event occurs.
 */

/**
 * 功能描述
 *
 * @author bwx484721
 * @since 2020-07-13
 */
public interface AnimationListener {
    /**
     * Called when single loop of the animation is completed.
     *
     * @param loopNumber 0-based number of the completed loop, 0 for infinite animations
     */
    void onAnimationCompleted(int loopNumber);
}
